<template>
<div class="Select">
    <var-select placeholder="请选择一个选项" v-model="value" @change="change">
        <var-option label="吃饭" />
        <var-option label="睡觉" />
    </var-select>

    <h1>触发结果</h1>
    <p v-for="(item,index) in list" :key="index">{{item}}</p>
</div>
</template>

<script>
//import LHeader from '@/components/layout/LHeader.vue'

export default {
    name: 'Select',
    components: {},
    data() {
        return {
            list:[],
            value: ''
        }
    },
    methods: {
        change() {
            this.list.push('触发' + this.list.length)
        }
    },
    mounted() {}
};
</script>

<style lang="scss" scoped>
.Select {}
</style>
